package net.service;

import net.pojo.Artile;
import net.pojo.Dicuss;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/5/22 10:23
 */
public interface ArtileService {
    List<Artile> findAll();

    List<Artile> findByTags(String tags);

    List<Artile> findByComment();

    Artile findById(Integer pid);

    List<Artile> findByClick();

    List<Artile> search(String title);

    int updateClick(Artile artile);

    Artile findByIdPrev (Integer pid);

    Artile findByIdNext (Integer pid);

    int updateComment(Artile artile);

    List<Dicuss> findAllByDpid(Integer dpid);

    //添加评论
    int insertDicuss(Dicuss dicuss);

    //相关推荐
    List<Artile> findThreeByTags(@Param(value = "tags") String tags);
}
